package com.example.smartf.model.mongo;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Arrays;

public class Group implements Serializable {
    private String groupID;

    private String users[];

    private String devices[];

    public Group() {
    }

    public Group(String groupID){
        this.groupID = groupID;
    }

    public Group(String groupID, String[] users, String[] devices) {
        this.groupID = groupID;
        this.users = users;
        this.devices = devices;
    }

    public String getGroupID() {
        return groupID;
    }

    public void setGroupID(String groupID) {
        this.groupID = groupID;
    }

    public String[] getUsers() {
        return users;
    }

    public void setUsers(String[] users) {
        this.users = users;
    }

    public String[] getDevices() {
        return devices;
    }

    public void setDevices(String[] devices) {
        this.devices = devices;
    }

    @Override
    public String toString() {
        return "Group{" +
                "groupID='" + groupID + '\'' +
                ", users=" + Arrays.toString(users) +
                ", devices=" + Arrays.toString(devices) +
                '}';
    }
}
